import request from '@/utils/request'

export const programList = (search) =>
  request({
    url: '/program',
    method: 'get',
    params: {
      encode: search.encode,
      sid: search.sid,
      offset: search.offset,
      limit: search.limit
    }
  })
export const saveProgram = (program) =>
  request({
    url: '/program/add',
    method: 'post',
    data: program
  })
export const updateProgram = (id, program) =>
  request({
    url: '/program/' + id,
    method: 'put',
    data: program
  })
export const removeProgram = (id) =>
  request({
    url: '/program/' + id,
    method: 'delete'
  })

